import Vue from 'vue';
import App from './App';
import _mixins from './common/_mixins';
import VueClipboard from 'vue-clipboard2'
import uView from '@/uni_modules/uview-ui'
import pinyin from 'js-pinyin'
import { debuggerModule } from 'uni_modules/imengyu-IMDebuggerWindow/common/debuggerExtern.js'//调试组件
import CommentPop from '@/pages/home/child/week-report-view/components/comment-pop.vue';

const errorHandler = (err, vm, info) => { 
  if(debuggerModule) debuggerModule.addVueError(err, vm, info);
}

Vue.config.errorHandler = errorHandler;  

Vue.use(uView)
Vue.use(VueClipboard)
Vue.component('CommentPop',CommentPop)

// 关闭生产提示
Vue.config.productionTip = false;
// 小程序页面组件和这个`App.vue`组件的写法和引入方式是一致的，为了区分两者，需要设置`mpType`值
App.mpType = 'app';

Vue.mixin(_mixins);

const app = new Vue({
    ...App
});
app.$mount();
